Contributors mailing list archives

contributors@odoo-community.org

Avatar

Migrating custom modules of Point of Sale from v13 to v15

by
duygutuncay
- 22/07/2022 08:50:09
Hi,

We're trying to upgrade a custom module from v13 to v15. post_statement_id field which is included in class AccountBankStatementLine model via inheritance in point_of_sale module in Odoo Community addons v13 but it doesn't exist in v15 and this field is used in our custom module.

What is replaced with pos_statement_id field of AccountBankStatementLine in v15?


v13:
in point_of_sale module:

class AccountBankStatementLine(models.Model):
    _inherit = 'account.bank.statement.line'

    pos_statement_id = fields.Many2one('pos.order', string="POS statement", ondelete='cascade')



custom module in v13:
class POSOrder(models.Model):
    _inherit = 'pos.order'

    statement_ids = fields.One2many(
        'account.bank.statement.line',
        'pos_statement_id',
        string='Bank Payments',
        states={'draft': [('readonly', False)]},
        readonly=True)

v15:
No inherited account.bank.statement.line class and no pos_statement_id field
   
I need a detailed description of how module designs changed from v13 to v15. There are several similar issues in our custom module. Could you please give some suggestions? Is there any descriptive document that explains how module structures changed to take into account for developers?


Regards