File tree Expand file tree Collapse file tree 5 files changed +40
-1
lines changed Expand file tree Collapse file tree 5 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 11{
2- 'name' : "estate " ,
2+ 'name' : "Estate " ,
33 'version' : '1.0' ,
44 'depends' : ['base' ],
55 'author' : "Victor Decleire" ,
Original file line number Diff line number Diff line change 1+ from . import models
Original file line number Diff line number Diff line change 1+ {
2+ 'name' : "Estate Account" ,
3+ 'version' : '1.0' ,
4+ 'depends' : [
5+ 'estate' ,
6+ 'account'
7+ ],
8+ 'author' : "Victor Decleire" ,
9+ 'application' : True ,
10+ 'license' : "LGPL-3" ,
11+ 'data' : [
12+ ],
13+ }
Original file line number Diff line number Diff line change 1+ from . import estate_property
Original file line number Diff line number Diff line change 1+ from odoo import models , Command
2+
3+
4+ class EstatePropertyInherited (models .Model ):
5+ _inherit = "estate.property"
6+
7+ def action_set_sold (self ):
8+ super ().action_set_sold ()
9+ self .env ['account.move' ].create ({
10+ 'move_type' : 'out_invoice' ,
11+ 'partner_id' : self .buyer_id .id ,
12+ 'invoice_line_ids' : [
13+ Command .create ({
14+ 'name' : self .name ,
15+ 'quantity' : 1 ,
16+ 'price_unit' : self .selling_price * 0.06
17+ }),
18+ Command .create ({
19+ 'name' : 'Administrative fees' ,
20+ 'quantity' : 1 ,
21+ 'price_unit' : 100.00
22+ })
23+ ],
24+ })
You can’t perform that action at this time.
0 commit comments