Bugs

Premigració a 3.4

SQL

1. Purchase

Eliminar el context "{'type': 'in_invoice'}" de act_invoice_form (si el té afegit)

select * from ir_action_act_window where context = '{''type'': ''in_invoice''}' and domain like '%purchase.line%';
update ir_action_act_window set context = '{}' where id = XXXX; # detectar quin ID te.

2. Mòduls deprecated que s'han d'eliminar abans de migrar:

select * from ir_module_module where name in ('asset_invoice', 'account_bank_statement_user', 'asterisk', 'aeat_349_es', 'aeat_303_es', 'aeat_340_es', 'activity_calendar', 'account_budget', 'carrier_file', 'file_format', 'account_dunning_mail', 'account_invoice_information_uom', 'asset_maintenance', 'asset', 'asset_manufacturer', 'account_invoice_order_number', 'asset_vehicle', 'asset_relationship', 'asset_attribute', 'account_invoice_milestone', 'asset_owner', 'account_invoice_buttons', 'asset_guarantee', 'commission_partial_payment', 'party_asterisk', 'asset_work_shipment', 'product_kit_cost', 'shipment_work', 'purchase_contract', 'product_cost_plan_margin', 'stock_lot_cost', 'purchase_lot_cost', 'product_cost_plan', 'sale_shipment_cost_prices', 'sale_pos_esc', 'stock_lot_sequence', 'stock_lot_supplier_ref', 'purchase_information_uom', 'stock_lot_manufacturer', 'product_esale_purchasable', 'product_esale_manufacturer', 'production_origin', 'production_supply_request', 'product_brand', 'production_editable_tree', 'production_split', 'sale_buttons', 'product_name', 'stock_split_lot_expiry', 'stock_scanner_lot', 'timetracker', 'work_project', 'stock_scanner', 'stock_supply_request');

delete from ir_module_module_dependency where module in (select * from ir_module_module where name in ('asset_invoice', 'account_bank_statement_user', 'asterisk', 'aeat_349_es', 'aeat_303_es', 'aeat_340_es', 'activity_calendar', 'account_budget', 'carrier_file', 'file_format', 'account_dunning_mail', 'account_invoice_information_uom', 'asset_maintenance', 'asset', 'asset_manufacturer', 'account_invoice_order_number', 'asset_vehicle', 'asset_relationship', 'asset_attribute', 'account_invoice_milestone', 'asset_owner', 'account_invoice_buttons', 'asset_guarantee', 'commission_partial_payment', 'party_asterisk', 'asset_work_shipment', 'product_kit_cost', 'shipment_work', 'purchase_contract', 'product_cost_plan_margin', 'stock_lot_cost', 'purchase_lot_cost', 'product_cost_plan', 'sale_shipment_cost_prices', 'sale_pos_esc', 'stock_lot_sequence', 'stock_lot_supplier_ref', 'purchase_information_uom', 'stock_lot_manufacturer', 'product_esale_purchasable', 'product_esale_manufacturer', 'production_origin', 'production_supply_request', 'product_brand', 'production_editable_tree', 'production_split', 'sale_buttons', 'product_name', 'stock_split_lot_expiry', 'stock_scanner_lot', 'timetracker', 'work_project', 'stock_scanner', 'stock_supply_request'));

delete from ir_module_module where name in ('asset_invoice', 'account_bank_statement_user', 'asterisk', 'aeat_349_es', 'aeat_303_es', 'aeat_340_es', 'activity_calendar', 'account_budget', 'carrier_file', 'file_format', 'account_dunning_mail', 'account_invoice_information_uom', 'asset_maintenance', 'asset', 'asset_manufacturer', 'account_invoice_order_number', 'asset_vehicle', 'asset_relationship', 'asset_attribute', 'account_invoice_milestone', 'asset_owner', 'account_invoice_buttons', 'asset_guarantee', 'commission_partial_payment', 'party_asterisk', 'asset_work_shipment', 'product_kit_cost', 'shipment_work', 'purchase_contract', 'product_cost_plan_margin', 'stock_lot_cost', 'purchase_lot_cost', 'product_cost_plan', 'sale_shipment_cost_prices', 'sale_pos_esc', 'stock_lot_sequence', 'stock_lot_supplier_ref', 'purchase_information_uom', 'stock_lot_manufacturer', 'product_esale_purchasable', 'product_esale_manufacturer', 'production_origin', 'production_supply_request', 'product_brand', 'production_editable_tree', 'production_split', 'sale_buttons', 'product_name', 'stock_split_lot_expiry', 'stock_scanner_lot', 'timetracker', 'work_project', 'stock_scanner', 'stock_supply_request');

Migració 3.4 a 3.6

Pendents de migrar

Fitxer de configuració

price_digits = (16, config.getint('product', 'price_decimal', default=4))

Revisar migracions per defecte siguin correctes o interferir tercers mòduls

Errors upgrade

1. Error XML act_invoice_form

234 | [('lines.origin.purchase.id', 'in', Eval('active_ids'), 'purchase.line')] | 2013-11-25 13:03:20.256361 | 2014-09-03 19:28:27.604031 | account.invoice | []           |         0 |          0 | {'type': 'in_invoice'} | t           |     0 |    234 | 

update ir_action_act_window set context = '{}' where id = 234;

Post Update

CSV Import

SQL

Galatea Blog: update galatea_blog_comment set comment_create_date = create_date;
Gatalea Photoalbum: update galatea_photoalbum_comment set comment_create_date = create_date;
Gataleta Tutorial: update galatea_tutorial_comment set comment_create_date = create_date;

Canvi formules tarifes

1- General:

Abans:

product.list_price * (1 + 0) + (0)

Ara:

getattr(product, 'list_price') * (1 + 0) + (0)

update product_price_list_line as p set formula=replace(formula, 'product.list_price', 'getattr(product, "list_price")');

2- Preu llista associat a una altra llista de preus:

Abans:

price_list.compute_price_list(34)*1

Ara:

price_list(34)*1

3- Preu amb special price

Abans:

product.special_price>0 and product.special_price or product.list_price * (1 + -0.15)

Ara:

getattr(product, 'special_price') if getattr(product, 'special_price') > 0 else getattr(product, 'list_price') * (1 + -0.15)

Codi

price_digits = (16, config.getint('product', 'price_decimal', default=4))

+    <field name="date" widget="date"/>
+    <field name="date" widget="time" string="Time"/>

Ja fixat

Issues per entrar a la branca zz3.6

Mòduls

Account ES / PyME

Babi

Migracio3.4-3.6 (last edited 2015-09-28 20:10:21 by resteve)

Contenidos creados por el equipo de Zikzakmedia. Creative Commons By-NC-SA

PythonZikzakmedia