from osv import osv
from osv import fields
+
class Partner(osv.osv):
_inherit = 'res.partner'
_columns = {
- 'member_ident': fields.char('Member identifier', size=64, readonly=True),
+ 'member_ident': fields.char('Member identifier', size=64),
}
+ _sql_constraints = [
+ ('member_ident_uniq', 'unique(member_ident, company_id)', 'The member identifier must be unique !'),
+ ]
+
Partner()
+class Product(osv.osv):
+ _inherit = 'product.product'
+
+ _columns = {
+ 'membership_grouped': fields.boolean('Grouped membership product', help='Check if it\'s a grouped membership product.'),
+ 'membership_date2date': fields.boolean('Date to date membership product', help='Check if it\'s a date to date membership product.'),
+ }
+
+Product()
+
+
class account_invoice_line(osv.osv):
- _inherit='account.invoice.line'
+ _inherit = 'account.invoice.line'
def create(self, cr, uid, vals, context=None):
res = super(account_invoice_line, self).create(cr, uid, vals, context=context)
account_invoice_line()
+
class pos_make_payment(osv.osv_memory):
_inherit = 'pos.make.payment'