diff options
| author | Benjamin Frantzen (bfr) <bfr@odoo.com> | 2020-04-01 08:13:15 +0000 |
|---|---|---|
| committer | Benjamin Frantzen (bfr) <bfr@odoo.com> | 2020-04-02 18:48:39 +0000 |
| commit | d1bbf11af27e4ce12b025ef22e397302ee6336c2 (patch) | |
| tree | d573d3d95186e71ee8cdcac7ef944fdce214d8df /addons/purchase/views | |
| parent | 56a8ea9422fe4a2e768f6ef351a0f9c5ad19c3d0 (diff) | |
[IMP] account: usability of account.move form view
- moved company_id in other info tab
- currency_id is shown near journal_id
- invoice:
-- ref renamed to 'customer reference' and move to other info tab
-- payment_reference hidden if state is draft
-- Fixed bug in l10n_in where xpath did not find removed element
- vendor bill: auto-complete only shown in edit mode
was task:2209497
closes odoo/odoo#48913
X-original-commit: 170635c901914cfe8f33fdbe8d498cbd5f54054e
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/purchase/views')
| -rw-r--r-- | addons/purchase/views/account_move_views.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/purchase/views/account_move_views.xml b/addons/purchase/views/account_move_views.xml index 0577779faaa..60b3fae272a 100644 --- a/addons/purchase/views/account_move_views.xml +++ b/addons/purchase/views/account_move_views.xml @@ -9,7 +9,9 @@ <!-- Auto-complete could be done from either a bill either a purchase order --> <field name="invoice_vendor_bill_id" position="after"> <field name="purchase_id" invisible="1"/> - <field name="purchase_vendor_bill_id" + <label for="purchase_vendor_bill_id" string="Auto-Complete" class="oe_edit_only" + attrs="{'invisible': ['|', '|', ('state','not in',['draft']), ('state', '=', 'purchase'), ('move_type', '!=', 'in_invoice')]}" /> + <field name="purchase_vendor_bill_id" nolabel="1" attrs="{'invisible': ['|', '|', ('state','not in',['draft']), ('state', '=', 'purchase'), ('move_type', '!=', 'in_invoice')]}" class="oe_edit_only" domain="[('company_id', '=', company_id), ('partner_id','child_of', [partner_id])]" @@ -17,6 +19,9 @@ context="{'show_total_amount': True}" options="{'no_create': True, 'no_open': True}"/> </field> + <label name="invoice_vendor_bill_id_label" position="attributes"> + <attribute name="invisible">1</attribute> + </label> <field name="invoice_vendor_bill_id" position="attributes"> <attribute name="invisible">1</attribute> </field> |
