translate field party.shops

This commit is contained in:
Alnus Tmp 2021-08-22 03:59:48 +00:00
parent 1e36d24995
commit de259e166b
2 changed files with 5 additions and 9 deletions

View File

@ -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"

View File

@ -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'"))