Improvement for incoterm
This commit is contained in:
@@ -626,3 +626,14 @@ class AccountReconcileModel(models.Model):
|
|||||||
# Because it's much better to have the bank statement line label as
|
# Because it's much better to have the bank statement line label as
|
||||||
# label of the counter-part move line, then the label of the button
|
# label of the counter-part move line, then the label of the button
|
||||||
assert True # Stupid line of code just to have something...
|
assert True # Stupid line of code just to have something...
|
||||||
|
|
||||||
|
|
||||||
|
class AccountIncoterms(models.Model):
|
||||||
|
_inherit = 'account.incoterms'
|
||||||
|
|
||||||
|
@api.depends('code', 'name')
|
||||||
|
def name_get(self):
|
||||||
|
res = []
|
||||||
|
for rec in self:
|
||||||
|
res.append((rec.id, '[%s] %s' % (rec.code, rec.name)))
|
||||||
|
return res
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
<field name="fiscal_position_id" position="attributes">
|
<field name="fiscal_position_id" position="attributes">
|
||||||
<attribute name="widget">selection</attribute>
|
<attribute name="widget">selection</attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="incoterm_id" position="attributes">
|
||||||
|
<attribute name="widget">selection</attribute>
|
||||||
|
</field>
|
||||||
<field name="invoice_line_ids" position="before">
|
<field name="invoice_line_ids" position="before">
|
||||||
<button name="delete_lines_qty_zero" states="draft" string="⇒ Delete lines qty=0" type="object" class="oe_link oe_right" groups="account.group_account_invoice"/>
|
<button name="delete_lines_qty_zero" states="draft" string="⇒ Delete lines qty=0" type="object" class="oe_link oe_right" groups="account.group_account_invoice"/>
|
||||||
</field>
|
</field>
|
||||||
@@ -33,6 +36,9 @@
|
|||||||
<field name="fiscal_position_id" position="attributes">
|
<field name="fiscal_position_id" position="attributes">
|
||||||
<attribute name="widget">selection</attribute>
|
<attribute name="widget">selection</attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="incoterm_id" position="attributes">
|
||||||
|
<attribute name="widget">selection</attribute>
|
||||||
|
</field>
|
||||||
<!-- move sent field and make it visible -->
|
<!-- move sent field and make it visible -->
|
||||||
<field name="sent" position="replace"/>
|
<field name="sent" position="replace"/>
|
||||||
<field name="move_id" position="before">
|
<field name="move_id" position="before">
|
||||||
|
|||||||
Reference in New Issue
Block a user