Tower: upload om_account_accountant 19.0.1.0.3 (was 1.0.3, via marketplace)
This commit is contained in:
2
addons/om_account_accountant/models/__init__.py
Normal file
2
addons/om_account_accountant/models/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from . import account_move
|
||||
from . import settings
|
||||
9
addons/om_account_accountant/models/account_move.py
Normal file
9
addons/om_account_accountant/models/account_move.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from odoo import fields, models, api
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = "account.move"
|
||||
|
||||
@api.model
|
||||
def _get_invoice_in_payment_state(self):
|
||||
return 'in_payment'
|
||||
11
addons/om_account_accountant/models/settings.py
Normal file
11
addons/om_account_accountant/models/settings.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
anglo_saxon_accounting = fields.Boolean(
|
||||
related="company_id.anglo_saxon_accounting",
|
||||
readonly=False, string="Use anglo-saxon accounting",
|
||||
help="Record the cost of a good as an expense when this good is invoiced to a final customer."
|
||||
)
|
||||
Reference in New Issue
Block a user