fix som issue on update chart
This commit is contained in:
parent
e678697890
commit
02e78560ee
|
@ -26,7 +26,9 @@ def get_tax(xml_id):
|
|||
data, = ModelData.search([('module', '=', 'account_es'),
|
||||
('fs_id', '=', xml_id)], limit=1)
|
||||
template = AccountTaxTemplate(data.db_id)
|
||||
tax, = AccountTax.search([('template', '=', template.id)], limit=1)
|
||||
print "template:", template, template.name
|
||||
with Transaction().set_context(active_test=False):
|
||||
tax, = AccountTax.search([('template', '=', template.id)], limit=1)
|
||||
return (template, tax)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -56,6 +58,7 @@ with Transaction().start(dbname, 0, context=context) as transaction:
|
|||
if '_' == xml_id[-1]:
|
||||
xml_id = xml_id[:-1]
|
||||
|
||||
print xml_id, name, fs_id
|
||||
new_template, new_tax = get_tax(xml_id)
|
||||
|
||||
if xml_id in xml_ids:
|
||||
|
|
|
@ -299,6 +299,13 @@ after:
|
|||
# - DELETE FROM ir_translation WHERE module = 'account_es_pyme';
|
||||
- query: delete from "aeat_303_mapping-account_tax_code"
|
||||
- query: delete from aeat_303_mapping ;
|
||||
- query: delete from aeat_303_mapping ;
|
||||
- comment: -> 4.7
|
||||
version: 4.7
|
||||
query: update account_tax_template set update_unit_price = false where update_unit_price
|
||||
- comment: -> 4.7
|
||||
version: 4.7
|
||||
query: update account_tax set update_unit_price = false where update_unit_price
|
||||
- comment: -> 4.0
|
||||
version: 4.0
|
||||
query: UPDATE account_move_reconciliation SET date=create_date::DATE WHERE date IS NULL;
|
||||
|
|
Loading…
Reference in New Issue