Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1990 Widoki

I am trying to inhert the  account.view_account_payment_form to set the action_post button invisible based on the state, like this:

<recordid="account_payment_form_inherit_tier"model="ir.ui.view"><fieldname="name">account.payment.form.inherit.tierfield><fieldname="model">account.paymentfield><fieldname="inherit_id"ref="account.view_account_payment_form"/><fieldname="arch"type="xml">

<buttonname="action_post"position="attributes"><attributename="invisible">1attribute>

button>

field>

record>

But when I upgrade or install the module, it reports an error like this:


                    
Field `effective_date` does not exist View error context: {'file': '/mnt/addons_test/account_payment_tier_validation/views/account_payment_view.xml', 'line': 1, 'name': 'account.payment.form.inherit.tier', 'view': ir.ui.view(3139,), 'view.model': 'account.payment', 'view.parent': ir.ui.view(1878,), 'xmlid': 'account_payment_form_inherit_tier'}

I even don't know where the effective_date is at very first, then I checked the inherits of account.view_account_paymenet_form, found an id   account_check_printing.view_account_payment_form_inherited

It contains the effective_date, but I don't know any relation of my code with this piece of code.

Can anybody tell me the reason and how to fix it? Thank you and regards.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

In order to resolve this error:

* activate developer mode
* settings -> technical -> user interface -> views
* search for the view containing effective_date inside view architecture
* remove effective_date from it
* try upgrading your module.

Thanks

Awatar
Odrzuć
Autor

It solved,thank you & regards.

Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
10196
1
paź 23
1681
1
mar 23
6718
8
cze 18
48104
2
mar 18
4702