translate field party.shops
This commit is contained in:
parent
1e36d24995
commit
de259e166b
|
@ -142,6 +142,10 @@ msgctxt "field:stock.shipment.out.return,shop_addresses:"
|
|||
msgid "Shop Addresses"
|
||||
msgstr "Direcciones de la tienda"
|
||||
|
||||
msgctxt "field:party.party,shops:"
|
||||
msgid "Shops"
|
||||
msgstr "Tiendas"
|
||||
|
||||
msgctxt "model:ir.action,name:act_purchase_shop_form"
|
||||
msgid "Shops"
|
||||
msgstr "Tiendas"
|
||||
|
|
10
purchase.py
10
purchase.py
|
@ -135,7 +135,7 @@ class PurchaseLine(metaclass=PoolMeta):
|
|||
|
||||
@fields.depends('product', 'unit', 'quantity', 'purchase',
|
||||
'_parent_purchase.party', 'product_supplier',
|
||||
'_parent_purchase.shop', 'analytic_accounts',
|
||||
'_parent_purchase.shop',
|
||||
methods=['_get_tax_rule_pattern', '_get_context_purchase_price'])
|
||||
def on_change_product(self):
|
||||
pool = Pool()
|
||||
|
@ -189,11 +189,3 @@ class PurchaseLine(metaclass=PoolMeta):
|
|||
|
||||
self.type = 'line'
|
||||
self.amount = self.on_change_with_amount()
|
||||
|
||||
self.analytic_accounts = ()
|
||||
|
||||
try:
|
||||
self.analytic_accounts += ({'root': self.purchase.shop.analytic_root,
|
||||
'account': self.purchase.shop.analytic_account},)
|
||||
except:
|
||||
raise UserError(str("Debe seleccionar 'Ciudad' y 'Sede'"))
|
||||
|
|
Loading…
Reference in New Issue